package vip.xiaonuo.facedoor.vo.haiqing;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Arrays;
import java.util.List;

@NoArgsConstructor
@Data
@Accessors(chain = true)
public class SetSubscribeRequest {


  @JSONField(name = "operator")
  private String operator="Subscribe";
  @JSONField(name = "info")
  private InfoDTO info;

  @NoArgsConstructor
  @Data
  public static class InfoDTO {
	@JSONField(name = "DeviceID")
	private Integer deviceID;

	@JSONField(name = "Num")
	private Integer num=2;

	@JSONField(name = "Topics")
	private List<String> topics= Arrays.asList("VerifyWithSnap");
//	private List<String> topics= Arrays.asList("VerifyWithSnap","Card");

	@JSONField(name = "SubscribeAddr")
	private String subscribeAddr;

	@JSONField(name = "SubscribeUrl")
	private SubscribeUrlDTO subscribeUrl=new SubscribeUrlDTO();

	@JSONField(name = "ResumefromBreakpoint")
	private Integer resumefromBreakpoint=1;

	@JSONField(name = "Auth")
	private String auth="none";

	@NoArgsConstructor
	@Data
	public static class SubscribeUrlDTO {
	  @JSONField(name = "VerifyWithSnap")
	  private String VerifyWithSnap="/subscribe/VerifyWithSnap";

	  @JSONField(name = "HeartBeat")
	  private String heartBeat="/subscribe/heartbeat";

//	  @JSONField(name = "Card")
//		private String Card="/subscribe/Card";
	}
  }
}
